/**
 * 首屏
 *
 * @author li.youxi
 * @date 2017/05/25
 */

require('./index.scss');
var tpl = require('./index.html'),
	doc = document;

var loadingObj = require('../loading/index.js');

var indexObj = {
	init: function(){
		doc.querySelector('#game_index').innerHTML = tpl;

		this.bindEvent();
	},

	bindEvent: function(){
		var startBtn = doc.querySelector('.index-wrapper #startBtn');

		startBtn.addEventListener('click', function(e){

			// gameObj.setStatus('loading', function(){
			// 	loadingObj.init();
			// });
			gameObj.setStatus('catalog');
		}, false);
	}
};

indexObj.init();

